<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<rich:panel header="#{messages['membership']}">
	<rich:dataTable id="data" var="membership"  value="#{agentSelectMembershipBean.membershipList}" rows="20" width="99%">
		<rich:column style="text-align:center;width:50%;">
			<f:facet name="header">
				<h:outputText value="#{messages['name']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{membership.name}"></h:outputText>
		</rich:column>
		<rich:column style="text-align:center;width:25%;">
			<f:facet name="header">
				<h:outputText value="#{messages['desc']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{membership.desc}"></h:outputText>
		</rich:column>
		<rich:column style="text-align:center;width:25%;">
			<f:facet name="header">
				<h:outputText value="#{messages['price']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{membership.membershipFeeDbl}">
				<f:convertNumber pattern="#,###,###,##0.00"/>
			</h:outputText>
		</rich:column>
		<rich:column style="text-align:center;width:25%;">
			<f:facet name="header">
				<h:outputText value="#{messages['action']}"></h:outputText>
			</f:facet>
			<h:commandButton value="#{messages['select']}" styleClass="button" action="#{agentSelectMembershipBean.navProspectCreation}" 
			actionListener="#{agentSelectMembershipBean.selectActionEvent}">
			</h:commandButton>
			<f:param id="membershipId" value="#{membership.membershipId}" />
		</rich:column>
	</rich:dataTable>
</rich:panel>